Learning Scrapy by Dimitris Kouzis - Loukas

Learning Scrapy by Dimitris Kouzis - Loukas

Author:Dimitris Kouzis - Loukas
Language: eng
Format: mobi, epub
Publisher: Packt Publishing
Published: 2016-01-29T23:00:00+00:00


Deferreds and deferred chains

Deferreds are the most essential mechanism that Twisted offers to help us write asynchronous code. Twisted APIs use deferreds to allow us to define sequences of actions that take place when certain events occur. Let's have a look at them.

Tip

You can get all the source code of this book from GitHub. To download this code go to git clone https://github.com/scalingexcellence/scrapybook

The full code from this chapter will be in the ch08 directory, and for this example in particular, in the ch08/deferreds.py file, and you can run it with ./deferreds.py 0.

You can use a Python console to run the following experiments interactively:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Deep Learning with Python by François Chollet(12625)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7803)
Grails in Action by Glen Smith Peter Ledbrook(7717)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6440)
Kotlin in Action by Dmitry Jemerov(5087)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3915)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3347)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(3099)
Mastering Bitcoin: Programming the Open Blockchain by Andreas M. Antonopoulos(2885)
The Art Of Deception by Kevin Mitnick(2620)
Drugs Unlimited by Mike Power(2477)
The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution by Walter Isaacson(2420)
A Blueprint for Production-Ready Web Applications: Leverage industry best practices to create complete web apps with Python, TypeScript, and AWS by Dr. Philip Jones(2369)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2318)
Writing for the Web: Creating Compelling Web Content Using Words, Pictures and Sound (Eva Spring's Library) by Lynda Felder(2274)
SEO 2018: Learn search engine optimization with smart internet marketing strategies by Adam Clarke(2200)
JavaScript by Example by S Dani Akash(2149)
DarkMarket by Misha Glenny(2093)
Wireless Hacking 101 by Karina Astudillo(2090)
Hands-On Cybersecurity with Blockchain by Rajneesh Gupta(2065)